package com.serviceimp;  

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;

import com.entity.Commoditytbale;
import com.mapper.ICommoditytbaleMapper;
import com.service.ICommoditytbaleService;

@Transactional
public class ICommoditytbaleServiceImp implements ICommoditytbaleService{

	@Autowired
	public ICommoditytbaleMapper commoditytbaleMapper;

	public List<Commoditytbale> selectCommoditytbale() {
		
		List<Commoditytbale> list=commoditytbaleMapper.selectCommoditytbale();
		
		return list;
		
	} 

	public Commoditytbale queryCommoditytbale(Commoditytbale commoditytbale) {
		
		Commoditytbale commoditytbale1=commoditytbaleMapper.queryCommoditytbale(commoditytbale);
		
		return commoditytbale1;
		
	}

	public int insertCommoditytbale(Commoditytbale commoditytbale) {
		
		int i=commoditytbaleMapper.insertCommoditytbale(commoditytbale);
		
		return i;
		
	}

	public int updateCommoditytbale(Commoditytbale commoditytbale) {
		
		int i=commoditytbaleMapper.updateCommoditytbale(commoditytbale);
		
		return i;
		
	}

	public int deleteCommoditytbale(Commoditytbale commoditytbale) {
		
		int i=commoditytbaleMapper.deleteCommoditytbale(commoditytbale);
		
		return i;
		
	}
	
}
